﻿@using Kendo.Mvc.UI
@using Arms.Application.Modules.Products.DTOs
@{
    ViewBag.Title = "Products";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="box">
    <div class="box-content">
        @(Html.Kendo().Grid<ProductDTO>()
                      .Name("grdProducts")
                      .Columns(c =>
                      {
                          c.Bound(p => p.ProductID);
                          c.Bound(p => p.ProductName);
                          c.Bound(p => p.Price);
                      })
                      .DataSource(ds =>
                      {
                          ds.Ajax().Read(r => r.Action("GetProducts", "Product"));
                      })
                      .Selectable(s => s.Mode(GridSelectionMode.Single))
                      
        )
    </div>
</div>